home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
assem.zip
/
ASSEM.BAT
next >
Wrap
DOS Batch File
|
1985-10-04
|
2KB
|
76 lines
echo off
cls
echo - The DEBUG Assembler System
echo -
if exist debug.com goto gotdebug
echo -
echo -
echo -Did not find DEBUG.COM
echo -
echo -You must have DEBUG in this directory
echo -or have PATH set to point to the drive
echo -and path where DEBUG can be found.
goto end
:gotdebug
if %1==A goto assemble
if %1==a goto assemble
if %1==U goto unassemble
if %1==u goto unassemble
echo -
echo -
echo -
echo -Please specify one of the following modes:
echo -
echo - [A,a] to assemble a file
echo - [U,u] to unassemble a file
echo -
echo -Reenter your selection.
goto end
:assemble
echo -searching for the file "%2.ASM"
echo -
if not exist %2.asm goto aerror
echo -assembling the file "%2.COM"
echo -
echo -the results of the assembly will be placed
echo -into the file "%2.LST"
echo -
echo -please wait. . .
echo -
debug <%2.asm >%2.lst
echo -assembly completed
goto end
:aerror
echo -the file "%2.ASM" does not exist
echo -
echo -if the file name above is ".ASM"
echo -you forgot to specify a file name
goto end
:disassemble
echo -searching for the file "%2.COM"
echo -
if not exist %2.com goto derror
echo -ready to disassemble the file "%2.COM"
echo -
echo -enter the commands for DEBUG to use
echo -
echo -press F6 when done. . .
echo -
copy con: unasm.cmd
echo -
echo -producing the file "%2.FIL" now
echo -
echo -please wait. . .
echo -
debug <unasm.cmd >%2.fil
echo -disassembly completed
goto end
:derror
echo -the file "%2.COM" does not exist
echo -
echo -if the file name above is ".COM"
echo -you forgot to specify a file name
:end
o -the file "%2.COM" does not exist
echo -
echo -if the file name above is ".C